package com.ruoyi.applet.mapper;

import java.time.LocalDateTime;
import java.util.List;
import com.ruoyi.applet.domain.Spikes;
import com.ruoyi.applet.domain.vo.SpikesGoods;
import com.ruoyi.applet.domain.vo.SpikesOrder;
import com.ruoyi.applet.domain.vo.SpikesTime;
import org.apache.ibatis.annotations.Param;

/**
 * 秒杀活动Mapper接口
 * 
 * @author ruoyi
 * @date 2024-11-14
 */
public interface SpikesMapper 
{
    List<SpikesOrder> selectAllByGoodsIdSpikesGoodsList();

    List<SpikesOrder> selectBySpikesIdList(@Param("productId") Long productId);

    List<SpikesOrder> selectByProductIdList(@Param("productId") Long productId);

    List<SpikesTime> selectAllByCreateTimeSpikesList(@Param("now") LocalDateTime now);

    Integer insertAllInteger(@Param("usrId") Long usrId,@Param("orderId") String orderId,
                             @Param("orderTotal") String orderTotal,@Param("orderReceiverName") String orderReceiverName,
                             @Param("orderReceiverPhone") String orderReceiverPhone,@Param("orderReceiverAddress") String orderReceiverAddress,
                             @Param("orderGoodsId") Long orderGoodsId,@Param("orderNumber") Long orderNumber,
                             @Param("orderTransactionId") String orderTransactionId,@Param("spikesInfoId")Long spikesInfoId);

}
